package com.peaksport.framework.venum;

import com.peaksport.framework.base.venum.BaseIntEnum;

/**
 * Created by jinbin_guo on 2017/1/1.
 *
 *  单据类基础状态
 */
@SuppressWarnings("serial")
public class BillBaseStatusEnum extends BaseIntEnum {

    public static final int version_value = -3;
    public static final int altering_value = -2;
    public static final int null_value = -1;

    public static final int addnew_value = 0;
    public static final int save_value = 1;
    public static final int submit_value = 2;
    public static final int deleted_value = 3;
    public static final int audited_value = 4;
    public static final int released_value = 5;
    public static final int blocked_value = 6;
    public static final int closed_value = 7;
    public static final int complete_value = 8;
    public static final int finish_value = 90;
    public static final int published_value = 10;
    public static final int finclosed_value = 11;
    public static final int confirm_value = 12;

    public static final BillBaseStatusEnum VERSION = new BillBaseStatusEnum(version_value,"历史版本");
    public static final BillBaseStatusEnum ALTERING = new BillBaseStatusEnum(altering_value,"变更中");
    public static final BillBaseStatusEnum NULL = new BillBaseStatusEnum(null_value,"");

    public static final BillBaseStatusEnum ADDNEW = new BillBaseStatusEnum(addnew_value,"新增");
    public static final BillBaseStatusEnum SAVE = new BillBaseStatusEnum(save_value,"保存");
    public static final BillBaseStatusEnum SUBMIT = new BillBaseStatusEnum(submit_value,"提交");
    public static final BillBaseStatusEnum DELETED = new BillBaseStatusEnum(deleted_value,"作废");
    public static final BillBaseStatusEnum AUDITED = new BillBaseStatusEnum(audited_value,"审核");
    public static final BillBaseStatusEnum RELEASED = new BillBaseStatusEnum(audited_value,"下达");
    public static final BillBaseStatusEnum BLOCKED = new BillBaseStatusEnum(audited_value,"冻结");
    public static final BillBaseStatusEnum CLOSED = new BillBaseStatusEnum(closed_value,"关闭");
    public static final BillBaseStatusEnum COMPLETE = new BillBaseStatusEnum(audited_value,"完工");
    public static final BillBaseStatusEnum FINISH = new BillBaseStatusEnum(finish_value,"完工");
    public static final BillBaseStatusEnum PUBLISHED = new BillBaseStatusEnum(published_value,"完工");
    public static final BillBaseStatusEnum FINCLOSED = new BillBaseStatusEnum(finclosed_value,"完工");
    public static final BillBaseStatusEnum CONFIRM = new BillBaseStatusEnum(confirm_value,"完工");
    
    public BillBaseStatusEnum(){}

    public BillBaseStatusEnum(int value) {
        super(value);
    }

    public BillBaseStatusEnum(int value, String display) {
        super(value, display);
    }
/*
    public static BillBaseStatusEnum getEnum(int value) {
        return (BillBaseStatusEnum) getEnum(BillBaseStatusEnum.class,value);
    }
    public static List getEnumList() {
        return getEnumList(BillBaseStatusEnum.class);
    }
    public static Map getEnumMap() { return getEnumMap(BillBaseStatusEnum.class);  }
    public static String toJSON() {
        return toJSON(BillBaseStatusEnum.class);
    }
  */
}
